<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>发布Jar包到Nexus私有仓库 - Lglspace‘s Blog</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="lglspace" /><meta name="description" content="Nexus仓库类型介绍 proxy 代理仓库，用于代理远程仓库 group 仓库组，通常包含了多个代理仓库和宿主仓库，在项目中只要引入仓库组就可以下载到代理仓库和宿" /><meta name="keywords" content="lglspace, blog, lgl" />






<meta name="generator" content="Hugo 0.79.0 with theme even" />


<link rel="canonical" href="https://lglspace.cn/post/java/nexus-deploy-relate/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.b5a744db6de49a86cadafb3b70f555ab443f83c307a483402259e94726b045ff.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">
<link rel="stylesheet" href="/css/even-custom.css">


<meta property="og:title" content="发布Jar包到Nexus私有仓库" />
<meta property="og:description" content="Nexus仓库类型介绍 proxy 代理仓库，用于代理远程仓库 group 仓库组，通常包含了多个代理仓库和宿主仓库，在项目中只要引入仓库组就可以下载到代理仓库和宿" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://lglspace.cn/post/java/nexus-deploy-relate/" />
<meta property="article:published_time" content="2020-10-29T23:58:25+08:00" />
<meta property="article:modified_time" content="2020-10-29T23:58:25+08:00" />
<meta itemprop="name" content="发布Jar包到Nexus私有仓库">
<meta itemprop="description" content="Nexus仓库类型介绍 proxy 代理仓库，用于代理远程仓库 group 仓库组，通常包含了多个代理仓库和宿主仓库，在项目中只要引入仓库组就可以下载到代理仓库和宿">
<meta itemprop="datePublished" content="2020-10-29T23:58:25+08:00" />
<meta itemprop="dateModified" content="2020-10-29T23:58:25+08:00" />
<meta itemprop="wordCount" content="869">



<meta itemprop="keywords" content="java,nexus,maven,gradle," />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="发布Jar包到Nexus私有仓库"/>
<meta name="twitter:description" content="Nexus仓库类型介绍 proxy 代理仓库，用于代理远程仓库 group 仓库组，通常包含了多个代理仓库和宿主仓库，在项目中只要引入仓库组就可以下载到代理仓库和宿"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Lglspace</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">主页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">分类</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Lglspace</a>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">主页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">分类</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">发布Jar包到Nexus私有仓库</h1>

      <div class="post-meta">
        <span class="post-time"> 2020-10-29 </span>
        <div class="post-category">
            <a href="/categories/java/"> java </a>
            </div>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li><a href="#nexus仓库类型介绍">Nexus仓库类型介绍</a></li>
        <li><a href="#maven发布到远程仓库">Maven发布到远程仓库</a>
          <ul>
            <li><a href="#修改maven配置maven_homeconfsettingxml">修改maven配置($MAVEN_HOME/conf/setting.xml)</a></li>
            <li><a href="#修改pomxml">修改pom.xml</a></li>
            <li><a href="#测试">测试</a></li>
          </ul>
        </li>
        <li><a href="#gradle发布到远程仓库">Gradle发布到远程仓库</a>
          <ul>
            <li><a href="#修改buildgradle">修改build.gradle</a></li>
            <li><a href="#配置仓库的账号gradleproperties">配置仓库的账号(gradle.properties)</a></li>
            <li><a href="#测试-1">测试</a></li>
          </ul>
        </li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <h2 id="nexus仓库类型介绍">Nexus仓库类型介绍</h2>
<ul>
<li>proxy  代理仓库，用于代理远程仓库</li>
<li>group  仓库组，通常包含了多个代理仓库和宿主仓库，在项目中只要引入仓库组就可以下载到代理仓库和宿主仓库中的包</li>
<li>hosted 宿主仓库，内部项目、付费jar</li>
<li>releases 发布内部release版本的仓库</li>
<li>snapshots 发布内部snapshots版本的仓库</li>
<li>third 自建第三方jar</li>
</ul>
<h2 id="maven发布到远程仓库">Maven发布到远程仓库</h2>
<h3 id="修改maven配置maven_homeconfsettingxml">修改maven配置($MAVEN_HOME/conf/setting.xml)</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span><span class="lnt">25
</span><span class="lnt">26
</span><span class="lnt">27
</span><span class="lnt">28
</span><span class="lnt">29
</span><span class="lnt">30
</span><span class="lnt">31
</span><span class="lnt">32
</span><span class="lnt">33
</span><span class="lnt">34
</span><span class="lnt">35
</span><span class="lnt">36
</span><span class="lnt">37
</span><span class="lnt">38
</span><span class="lnt">39
</span><span class="lnt">40
</span><span class="lnt">41
</span><span class="lnt">42
</span><span class="lnt">43
</span><span class="lnt">44
</span><span class="lnt">45
</span><span class="lnt">46
</span><span class="lnt">47
</span><span class="lnt">48
</span><span class="lnt">49
</span><span class="lnt">50
</span><span class="lnt">51
</span><span class="lnt">52
</span><span class="lnt">53
</span><span class="lnt">54
</span><span class="lnt">55
</span><span class="lnt">56
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-xml" data-lang="xml">
  <span class="c">&lt;!--配置nexus仓库账号--&gt;</span>
  <span class="nt">&lt;servers&gt;</span>
    <span class="nt">&lt;server&gt;</span>
      <span class="nt">&lt;id&gt;</span>nexus-releases<span class="nt">&lt;/id&gt;</span>
      <span class="nt">&lt;username&gt;</span>sysdeployer<span class="nt">&lt;/username&gt;</span>  
      <span class="nt">&lt;password&gt;</span>abc123<span class="nt">&lt;/password&gt;</span>
    <span class="nt">&lt;/server&gt;</span>
    <span class="nt">&lt;server&gt;</span>
      <span class="nt">&lt;id&gt;</span>nexus-snapshots<span class="nt">&lt;/id&gt;</span>
      <span class="nt">&lt;username&gt;</span>sysdeployer<span class="nt">&lt;/username&gt;</span>
      <span class="nt">&lt;password&gt;</span>abc123<span class="nt">&lt;/password&gt;</span>
    <span class="nt">&lt;/server&gt;</span>
  <span class="nt">&lt;/servers&gt;</span>
  
  <span class="nt">&lt;profiles&gt;</span>
  
    <span class="nt">&lt;profile&gt;</span>
      <span class="nt">&lt;id&gt;</span>nexus-profile<span class="nt">&lt;/id&gt;</span>
      <span class="nt">&lt;activation&gt;</span>
        <span class="nt">&lt;activeByDefault&gt;</span>false<span class="nt">&lt;/activeByDefault&gt;</span>
      <span class="nt">&lt;/activation&gt;</span>
      <span class="c">&lt;!-- 私有库地址--&gt;</span>
      <span class="nt">&lt;repositories&gt;</span>
        <span class="nt">&lt;repository&gt;</span>
          <span class="nt">&lt;id&gt;</span>nexus-repository<span class="nt">&lt;/id&gt;</span>
          <span class="nt">&lt;url&gt;</span>http://192.168.12.80:8020/repository/maven-public/<span class="nt">&lt;/url&gt;</span>
          <span class="nt">&lt;releases&gt;</span>
            <span class="nt">&lt;enabled&gt;</span>true<span class="nt">&lt;/enabled&gt;</span>
          <span class="nt">&lt;/releases&gt;</span>
          <span class="nt">&lt;snapshots&gt;</span>
            <span class="nt">&lt;enabled&gt;</span>true<span class="nt">&lt;/enabled&gt;</span>
          <span class="nt">&lt;/snapshots&gt;</span>
        <span class="nt">&lt;/repository&gt;</span>
      <span class="nt">&lt;/repositories&gt;</span>
      <span class="c">&lt;!--插件库地址--&gt;</span>
      <span class="nt">&lt;pluginRepositories&gt;</span>
        <span class="nt">&lt;pluginRepository&gt;</span>
          <span class="nt">&lt;id&gt;</span>nexus-plugin-respository<span class="nt">&lt;/id&gt;</span>
          <span class="nt">&lt;url&gt;</span>http://192.168.12.80:8020/repository/maven-public/<span class="nt">&lt;/url&gt;</span>
          <span class="nt">&lt;releases&gt;</span>
            <span class="nt">&lt;enabled&gt;</span>true<span class="nt">&lt;/enabled&gt;</span>
          <span class="nt">&lt;/releases&gt;</span>
          <span class="nt">&lt;snapshots&gt;</span>
            <span class="nt">&lt;enabled&gt;</span>true<span class="nt">&lt;/enabled&gt;</span>
          <span class="nt">&lt;/snapshots&gt;</span>
        <span class="nt">&lt;/pluginRepository&gt;</span>
      <span class="nt">&lt;/pluginRepositories&gt;</span>
    <span class="nt">&lt;/profile&gt;</span>
    
  <span class="nt">&lt;/profiles&gt;</span>
  
  <span class="nt">&lt;activeProfiles&gt;</span>
    <span class="nt">&lt;activeProfile&gt;</span>nexus-profile<span class="nt">&lt;/activeProfile&gt;</span>
  <span class="nt">&lt;/activeProfiles&gt;</span>
  
</code></pre></td></tr></table>
</div>
</div><h3 id="修改pomxml">修改pom.xml</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-xml" data-lang="xml"><span class="c">&lt;!-- 远程仓库的配置id要跟本地maven的setting.xml相同 --&gt;</span>
<span class="nt">&lt;distributionManagement&gt;</span>

    <span class="nt">&lt;repository&gt;</span>
        <span class="nt">&lt;id&gt;</span>nexus-releases<span class="nt">&lt;/id&gt;</span>
        <span class="nt">&lt;name&gt;</span>Nexus Release Repository<span class="nt">&lt;/name&gt;</span>
        <span class="nt">&lt;url&gt;</span>http://192.168.12.80:8020/repository/maven-releases/<span class="nt">&lt;/url&gt;</span>
    <span class="nt">&lt;/repository&gt;</span>
 
    <span class="nt">&lt;snapshotRepository&gt;</span>
        <span class="nt">&lt;id&gt;</span>nexus-snapshots<span class="nt">&lt;/id&gt;</span>
        <span class="nt">&lt;name&gt;</span>Nexus Snapshot Repository<span class="nt">&lt;/name&gt;</span>
        <span class="nt">&lt;url&gt;</span>http://192.168.12.80:8020/repository/maven-snapshots/<span class="nt">&lt;/url&gt;</span>
    <span class="nt">&lt;/snapshotRepository&gt;</span>
    
<span class="nt">&lt;/distributionManagement&gt;</span>
</code></pre></td></tr></table>
</div>
</div><h3 id="测试">测试</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">mvn clean deploy
</code></pre></td></tr></table>
</div>
</div><h2 id="gradle发布到远程仓库">Gradle发布到远程仓库</h2>
<h3 id="修改buildgradle">修改build.gradle</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span><span class="lnt">13
</span><span class="lnt">14
</span><span class="lnt">15
</span><span class="lnt">16
</span><span class="lnt">17
</span><span class="lnt">18
</span><span class="lnt">19
</span><span class="lnt">20
</span><span class="lnt">21
</span><span class="lnt">22
</span><span class="lnt">23
</span><span class="lnt">24
</span><span class="lnt">25
</span><span class="lnt">26
</span><span class="lnt">27
</span><span class="lnt">28
</span><span class="lnt">29
</span><span class="lnt">30
</span><span class="lnt">31
</span><span class="lnt">32
</span><span class="lnt">33
</span><span class="lnt">34
</span><span class="lnt">35
</span><span class="lnt">36
</span><span class="lnt">37
</span><span class="lnt">38
</span><span class="lnt">39
</span><span class="lnt">40
</span><span class="lnt">41
</span><span class="lnt">42
</span><span class="lnt">43
</span><span class="lnt">44
</span><span class="lnt">45
</span><span class="lnt">46
</span><span class="lnt">47
</span><span class="lnt">48
</span><span class="lnt">49
</span><span class="lnt">50
</span><span class="lnt">51
</span><span class="lnt">52
</span><span class="lnt">53
</span><span class="lnt">54
</span><span class="lnt">55
</span><span class="lnt">56
</span><span class="lnt">57
</span><span class="lnt">58
</span><span class="lnt">59
</span><span class="lnt">60
</span><span class="lnt">61
</span><span class="lnt">62
</span><span class="lnt">63
</span><span class="lnt">64
</span><span class="lnt">65
</span><span class="lnt">66
</span><span class="lnt">67
</span><span class="lnt">68
</span><span class="lnt">69
</span><span class="lnt">70
</span><span class="lnt">71
</span><span class="lnt">72
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-groovy" data-lang="groovy"><span class="n">plugins</span> <span class="o">{</span>
    <span class="n">id</span> <span class="s1">&#39;java&#39;</span>
    <span class="c1">// 1、添加maven插件
</span><span class="c1"></span>    <span class="n">id</span> <span class="s1">&#39;maven&#39;</span>
<span class="o">}</span>

<span class="n">group</span> <span class="s1">&#39;com.abc&#39;</span>
<span class="n">version</span> <span class="s1">&#39;1.0.1&#39;</span>
<span class="c1">// 2、定义artifactId
</span><span class="c1"></span><span class="kt">def</span> <span class="n">artifactId</span> <span class="o">=</span> <span class="s2">&#34;gradle-deploy-test&#34;</span>

<span class="n">sourceCompatibility</span> <span class="o">=</span> <span class="mf">1.8</span>

<span class="n">repositories</span> <span class="o">{</span>
    <span class="c1">// 3、配置远程仓库
</span><span class="c1"></span>    <span class="n">maven</span> <span class="o">{</span>
        <span class="n">url</span> <span class="s2">&#34;http://192.168.12.80:8020/repository/maven-public/&#34;</span>
    <span class="o">}</span>
    <span class="n">mavenLocal</span><span class="o">()</span>
    <span class="n">mavenCentral</span><span class="o">()</span>
<span class="o">}</span>

<span class="n">dependencies</span> <span class="o">{</span>
    <span class="n">testCompile</span> <span class="nl">group:</span> <span class="s1">&#39;junit&#39;</span><span class="o">,</span> <span class="nl">name:</span> <span class="s1">&#39;junit&#39;</span><span class="o">,</span> <span class="nl">version:</span> <span class="s1">&#39;4.12&#39;</span>
<span class="o">}</span>

<span class="c1">//  打包源代码
</span><span class="c1"></span><span class="n">task</span> <span class="nf">sourcesJar</span><span class="o">(</span><span class="nl">type:</span> <span class="n">Jar</span><span class="o">,</span> <span class="nl">dependsOn:</span> <span class="n">classes</span><span class="o">)</span> <span class="o">{</span>
    <span class="n">archiveClassifier</span> <span class="o">=</span> <span class="s1">&#39;sources&#39;</span>
    <span class="n">from</span> <span class="n">sourceSets</span><span class="o">.</span><span class="na">main</span><span class="o">.</span><span class="na">allSource</span>
<span class="o">}</span>

<span class="n">artifacts</span> <span class="o">{</span>
    <span class="n">archives</span> <span class="n">sourcesJar</span>
<span class="o">}</span>

<span class="c1">//如果希望gradle install，安装到.m2本地仓库，参考下面的内容
</span><span class="c1"></span><span class="n">install</span> <span class="o">{</span>
    <span class="n">repositories</span><span class="o">.</span><span class="na">mavenInstaller</span> <span class="o">{</span>
        <span class="n">pom</span><span class="o">.</span><span class="na">groupId</span> <span class="o">=</span> <span class="s2">&#34;$project.group&#34;</span>
        <span class="n">pom</span><span class="o">.</span><span class="na">artifactId</span> <span class="o">=</span> <span class="s2">&#34;$artifactId&#34;</span>
        <span class="n">pom</span><span class="o">.</span><span class="na">version</span> <span class="o">=</span> <span class="s2">&#34;$project.version&#34;</span>
    <span class="o">}</span>
<span class="o">}</span>

<span class="c1">//上传到nexus-snapshot，注：version的值以snapshot结尾，才能成功上传
</span><span class="c1">//uploadArchives {
</span><span class="c1">//    repositories {
</span><span class="c1">//        mavenDeployer {
</span><span class="c1">//            repository(url: &#34;http://192.168.12.80:8020/repository/maven-snapshots/&#34;) {
</span><span class="c1">//                authentication(userName: &#34;$nexusUsr&#34;, password: &#34;$nexusPwd&#34;)
</span><span class="c1">//            }
</span><span class="c1">//            pom.groupId = &#34;$project.group&#34;
</span><span class="c1">//            pom.artifactId = &#34;$artifactId&#34;
</span><span class="c1">//            pom.version = &#34;$project.version&#34;
</span><span class="c1">//        }
</span><span class="c1">//    }
</span><span class="c1">//}
</span><span class="c1"></span>
<span class="c1">// 4、上传到 nexus-release
</span><span class="c1"></span><span class="n">uploadArchives</span> <span class="o">{</span>
    <span class="n">repositories</span> <span class="o">{</span>
        <span class="n">mavenDeployer</span> <span class="o">{</span>
            <span class="n">repository</span><span class="o">(</span><span class="nl">url:</span> <span class="s2">&#34;http://192.168.12.80:8020/repository/maven-releases/&#34;</span><span class="o">)</span> <span class="o">{</span>
                <span class="n">authentication</span><span class="o">(</span><span class="nl">userName:</span> <span class="s2">&#34;$nexusUsr&#34;</span><span class="o">,</span> <span class="nl">password:</span> <span class="s2">&#34;$nexusPwd&#34;</span><span class="o">)</span>
            <span class="o">}</span>
            <span class="n">pom</span><span class="o">.</span><span class="na">groupId</span> <span class="o">=</span> <span class="s2">&#34;$project.group&#34;</span>
            <span class="n">pom</span><span class="o">.</span><span class="na">artifactId</span> <span class="o">=</span> <span class="s2">&#34;$artifactId&#34;</span>
            <span class="n">pom</span><span class="o">.</span><span class="na">version</span> <span class="o">=</span> <span class="s2">&#34;$project.version&#34;</span>
        <span class="o">}</span>
    <span class="o">}</span>
<span class="o">}</span>
</code></pre></td></tr></table>
</div>
</div><h3 id="配置仓库的账号gradleproperties">配置仓库的账号(gradle.properties)</h3>
<p>编辑 <strong>C:\Users{用户名}.gradle\gradle.properties</strong></p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">nexusUsr=sysdeployer
nexusPwd=abc123
</code></pre></td></tr></table>
</div>
</div><h3 id="测试-1">测试</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre class="chroma"><code class="language-fallback" data-lang="fallback">gradle build upload
</code></pre></td></tr></table>
</div>
</div>
    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">lglspace</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2020-10-29
        
    </span>
  </p>
  
  
</div>
<footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/java/">java</a>
          <a href="/tags/nexus/">nexus</a>
          <a href="/tags/maven/">maven</a>
          <a href="/tags/gradle/">gradle</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/post/java/java-exe4j-relate/">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">通过Exe4j将jar生成可执行的.exe文件</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/post/java/jar-main-class/">
            <span class="next-text nav-default">执行Jar时报错：没有主清单属性</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:lglspace@outlook.com" class="iconfont icon-email" title="email"></a>
  <a href="https://lglspace.cn/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  

  

  <span class="copyright-year">
    &copy; 
    2020 - 
    2021<span class="heart"><i class="iconfont icon-heart"></i></span><span>lglspace</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.a74e82b84b872f6b028df4e965781ddbba1606f0253b4fad5e4cf3913cf576eb.js"></script>






<script src="/js/site-custom.js"></script>


</body>
</html>
